Meaning of the word "an ounce of discretion is worth a pound of wit" in English

What does "an ounce of discretion is worth a pound of wit" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

an ounce of discretion is worth a pound of wit

US /æn aʊns əv dɪˈskreʃ.ən ɪz wɜːrθ ə paʊnd əv wɪt/
UK /æn aʊns əv dɪˈskreʃ.ən ɪz wɜːθ ə paʊnd əv wɪt/
"an ounce of discretion is worth a pound of wit" picture

Idiom

it is better to be careful and cautious than to be clever or funny but potentially offensive or reckless

Example:
I know you want to make a joke during the meeting, but remember that an ounce of discretion is worth a pound of wit.
He decided not to post the controversial comment, realizing that an ounce of discretion is worth a pound of wit.